package com.ljh.onlinetest.repository;

import com.ljh.onlinetest.domain.UserEventLog;
import com.ljh.onlinetest.domain.other.KeyValue;
import com.ljh.onlinetest.viewmodel.admin.user.UserEventPageRequestVM;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author ljh
 * @ClassName UserEventLogMapper.txt.java
 * @createTime 2022年01月06日
 */
@Mapper
public interface UserEventLogMapper extends BaseMapper<UserEventLog> {
    List<UserEventLog> page(UserEventPageRequestVM model);

    List<KeyValue> selectCountByDate(@Param("startTime") Date monthStartDay,@Param("endTime") Date monthEndDay);

    List<UserEventLog> getUserEventLogByUserId(Integer id);
}
